package com.training.schedule_management_system_admin.utils;



import java.util.Random;

public class CodeUtils {

    /*
    随机生成6位数的验证码
     */
    public static String getCode(){
        String code="";
        Random random=new Random();
        for(int i=0;i<6;i++){
            int r=random.nextInt(10);
            code=code+r;
        }
        return code;
    }
}
